<template>
    <div class="maincontent">
        <el-tabs v-model="activeName">
            <el-tab-pane label="基本信息" name="first">
                <div style="padding:4px;">
                    
                    <div class="maintitle" style="margin-top:40px;">申请规划设计信息</div>
                    <div class="construction">
                        <div class="item1">
                            <div class="title">土地请查费：</div>
                            <div class="value">112.5万元</div>
                            <div style="clear:both;"></div>
                        </div>
                        <div class="item1">
                            <div class="title">可行性研究费：</div>
                            <div class="value">112.5万元</div>
                            <div style="clear:both;"></div>
                        </div>
                        <div class="item1">
                            <div class="title">项目踏勘费：</div>
                            <div class="value">112.5万元</div>
                            <div style="clear:both;"></div>
                        </div>
                        <div class="item1">
                            <div class="title">规划设计与预算编制费：</div>
                            <div class="value">112.5万元</div>
                            <div style="clear:both;"></div>
                        </div>
                        <div class="item1">
                            <div class="title">规划设计申请书：</div>
                            <div class="value" style="display:flex;align-items:center;"><img src="../../../../assets/third/file.png" style="width:14px;height:16px;margin-right:2px;"/>规划设计书.pdf
                                <span style="margin-left:24px;color:#409EFF;cursor:pointer;">查看</span>
                                <span style="margin-left:8px;color:#409EFF;cursor:pointer;">下载</span>
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                    </div>
                    
                    <el-form :inline="true" label-position="left" :model="form" label-width="80px">
                        <div class="maintitle" style="margin-top:60px;">规划设计条件通知书</div>
                        <div class="formcontent">
                            <el-form-item label="项目规划设计条件书通知书" label-width="210px">
                                <el-upload
                                    class="upload-demo"
                                    action="https://jsonplaceholder.typicode.com/posts/"
                                    :file-list="fileList"
                                    :on-success="getreport"
                                    >
                                    <el-button size="small">上传</el-button>
                                </el-upload>
                            </el-form-item>
                        </div>
                        <div class="maintitle" style="margin-top:60px;">申请规划设计市中心意见</div>
                        <div class="formcontent">
                            <el-form-item label="处室负责人审查意见" label-width="140px" style="display:block;">
                                <el-input style="width:1000px;" type="textarea" rows="5">
                                </el-input>
                            </el-form-item>
                        </div>
                        <div>
                            <el-form-item label="审查人" style="margin-right:60px;">
                                <el-input style="width:200px;">
                                </el-input>
                            </el-form-item>
                            <el-form-item label="审查日期">
                                <el-date-picker
                                    type="date"
                                    placeholder="审查日期">
                                </el-date-picker>
                            </el-form-item>
                            <el-form-item label="审查意见">
                                <el-select v-model="form.type" placeholder="请选择">
                                    <el-option label="同意" value="shanghai"></el-option>
                                    <el-option label="拒绝" value="beijing"></el-option>
                                </el-select>
                            </el-form-item>
                        </div>
                        <div class="formcontent" style="margin-top:60px;">
                            <el-form-item label="中心领导意见" label-width="125px" style="display:block;">
                                <el-input style="width:1000px;" type="textarea" rows="5">
                                </el-input>
                            </el-form-item>
                        </div>
                        <div>
                            <el-form-item label="审查人" style="margin-right:60px;">
                                <el-input style="width:200px;">
                                </el-input>
                            </el-form-item>
                            <el-form-item label="审查日期">
                                <el-date-picker
                                    type="date"
                                    placeholder="审查日期">
                                </el-date-picker>
                            </el-form-item>
                            <el-form-item label="审查意见">
                                <el-select v-model="form.type" placeholder="请选择">
                                    <el-option label="同意" value="shanghai"></el-option>
                                    <el-option label="拒绝" value="beijing"></el-option>
                                </el-select>
                            </el-form-item>
                        </div>
                        <div class="formcontent" style="margin-top:60px;">
                            <el-form-item label="经办人审查意见" label-width="125px" style="display:block;">
                                <el-input style="width:1000px;" type="textarea" rows="5">
                                </el-input>
                            </el-form-item>
                        </div>
                        <div>
                            <el-form-item label="审查人" style="margin-right:60px;">
                                <el-input style="width:200px;">
                                </el-input>
                            </el-form-item>
                            <el-form-item label="审查日期">
                                <el-date-picker
                                    type="date"
                                    placeholder="审查日期">
                                </el-date-picker>
                            </el-form-item>
                            <el-form-item label="审查意见">
                                <el-select v-model="form.type" placeholder="请选择">
                                    <el-option label="同意" value="shanghai"></el-option>
                                    <el-option label="拒绝" value="beijing"></el-option>
                                </el-select>
                            </el-form-item>
                        </div>
                        <div style="margin-top:40px;">
                            <el-form-item>
                                <el-button type="primary" @click="onSubmit">提交</el-button>
                                <el-button>取消</el-button>
                            </el-form-item>  
                        </div>
                    </el-form>
                </div>
                
            </el-tab-pane>
            <el-tab-pane label="审查流程" name="second">
                <process :processData="processData"></process>
            </el-tab-pane>
        </el-tabs>
        
        
        
        
    </div>
</template>

<script>
import process from "../../public/process"
export default {
    components:{
        process:process
    },
    data() {
        return {
            form:{
                
            },
            activeName:"first",
            processData:[{
                isReview:true,//审核状态
                institutions:"处室负责人",//审核机构
                status:1,//审核状态：1通过，2不通过
                people:"李明",//审核人
                date:"2019/06/30",//审核日期
                advice:"同意",//审核意见
            },{
                isReview:true,
                institutions:"中心领导",
                status:1,
                people:"李明",
                date:"2019/06/30",
                advice:"同意",
            },{
                isReview:false,
                institutions:"经办人",
                status:1,
                people:"李明",
                date:"2019/06/30",
                advice:"同意",
            }],
            fileList:[],
        };
    },
    
    created() {
        
    },
    methods: {
        onSubmit(){

        },
        getreport(response, file, fileList){
            this.fileList = [];
            this.fileList.push(file)
        }
    }
};
</script>

<style lang="scss" scoped>
    .maincontent{
        margin: 10px;
        box-sizing: border-box;
        background: #ffffff;
        padding: 20px;
        .maintitle{
            font-size:18px;
            font-family:PingFang SC;
            font-weight:bold;
            line-height:25px;
            color: #4d4d4d;
        }
        .investmentmsg{
            .totalInvestment{
                width: 250px;
                height: 160px;
                margin-right: 30px;
                float: left;
                position: relative;
                margin-top: 15px;
                .contentbox{
                    width: 242px;
                    height: 100%;
                    background: #F6A924;
                    .title{
                        font-size:14px;
                        font-family:PingFang SC;
                        font-weight:500;
                        line-height:20px;
                        margin-left: 30px;
                        padding-top: 30px;
                        color: #ffffff;
                    }
                    .value{
                        font-size:40px;
                        font-family:PingFang SC;
                        font-weight:bold;
                        line-height:56px;
                        margin-top: 14px;
                        color: #ffffff;
                        text-align: center;
                        span{
                            font-size:13px;
                            font-family:PingFang SC;
                            font-weight:500;
                            line-height:18px;
                        }
                    }
                }
                .youjiantou{
                    position: absolute;
                    width:0;
                    height:0;
                    border-width:30px 0 30px 30px;
                    border-style:solid;
                    border-color:transparent transparent transparent #F6A924;
                    right: 0;
                    top: 50%;
                    margin-top: -30px;
                }
            }
            .childInvestment{
                width: 480px;
                height: 160px;
                float: left;
                margin-top: 15px;
                .leftbox{
                    width: 240px;
                    height: 160px;
                    float: left;
                    border-radius: 4px;
                    .title{
                        font-size:14px;
                        font-family:PingFang SC;
                        font-weight:500;
                        line-height:20px;
                        margin-left: 30px;
                        padding-top: 30px;
                        color: #ffffff;
                    }
                    .value{
                        font-size:40px;
                        font-family:PingFang SC;
                        font-weight:bold;
                        line-height:56px;
                        margin-top: 14px;
                        color: #ffffff;
                        text-align: center;
                        span{
                            font-size:13px;
                            font-family:PingFang SC;
                            font-weight:500;
                            line-height:18px;
                        }
                    }
                }
                .rightbox{
                    width: 240px;
                    height: 160px;
                    float: left;
                    padding-top: 20px;
                    padding-left: 30px;
                    background: #F3F6F8;
                    border-radius: 4px;
                    .item-content{
                        font-size:13px;
                        font-family:PingFang SC;
                        font-weight:500;
                        line-height:18px;
                        color: #969899;
                        margin-bottom: 7px;
                    }
                }
            }
        }



        .formcontent{
            margin-top: 30px;
            .secondtitle{
                font-size:14px;
                font-family:PingFang SC;
                font-weight:500;
                line-height:20px;
                color: #666666;
                span{
                    font-size:13px;
                    font-family:PingFang SC;
                    font-weight:500;
                    line-height:18px;
                    margin-right: 30px;
                    color: #a6a6a6;
                }
            }
            .purchaseExpense{
                margin-top: 20px;
                font-size:14px;
                font-family:PingFang SC;
                font-weight:500;
                line-height:20px;
                color: #666666;
                span{
                    font-size:14px;
                    font-family:PingFang SC;
                    font-weight:500;
                    line-height:20px;
                    color: #a6a6a6;
                    margin-right:60px;
                }
            }
            .allInvestment{
                font-size:14px;
                font-family:PingFang SC;
                font-weight:bold;
                line-height:20px;
                margin-top: 20px;
                color: #333333;
                span{
                    font-weight: 500;
                }
            }
        }
        .construction{
            padding-top: 10px;
            .item1{
                margin-top: 20px;
                .title{
                    font-size:14px;
                    font-family:PingFang SC;
                    font-weight:500;
                    line-height:20px;
                    color: #666666;
                    float: left;
                    width: 160px;
                    text-align: right;
                }
                .value{
                    float: left;
                    font-size:14px;
                    font-family:PingFang SC;
                    font-weight:500;
                    line-height:20px;
                    color: #a6a6a6;
                }
            }
        }
    }
</style>